<div class="panel">
    <div class="panel-heading">
        <h3 class="panel-title"></h3>
    </div>
    <div class="panel-body">
        <table id="dt-basic" class="table table-striped table-bordered"
               cellspacing="0" width="100%">
            <thead>
            <tr>
                <th><input type="checkbox" /></th>
                <th>公司名称</th>
                <th>电压等级(kV)</th>
                <th class="min-tablet">预估年电量(万kWh)</th>
                <th class="min-desktop">客户地区</th>
                <th class="min-desktop">绑定微信</th>
                <th class="min-desktop">销售</th>
                <th class="min-desktop">最新更新时间</th>
                <th>第几步</th>
                <th class="min-desktop">状态</th>
                <th class="min-desktop">操作</th>
            </tr>
            </thead>
            <tbody>
            <#if pageData.content?? && (pageData.content?size>0)>
                <#list pageData.content as data>
                    <tr>
                        <td><input type="checkbox" /></td>
                        <td><a href="<@spring.url "/manage/companyInfo/edit/${data.id}"/>">${(data.name)!}</a></td>
                        <td>${(data.detailInfo.voltageStep)!}</td>
                        <td>${(data.detailInfo.elecConsumption)!}</td>
                        <td>${(data.city.name)!}</td>
                        <td>${(data.wxNum)!}</td>
                        <td>${(data.user.name)!}</td>
                        <td>${(data.updateAt?string("yyyy年MM月dd日"))!}</td>
                        <td><#if (data.detailInfo)??>第二步<#else>第一步</#if></td>
                        <td><#if data?? && data.status==1>未审核<#else>已审核</#if></td>
                        <td>
                        </td>
                    </tr>
                </#list>
            </#if>
            </tbody>
        </table>
    </div>
</div>
<script src="<@spring.url "/resources/plugins/datatables/jquery.dataTables.js"/>"></script>
<script src="<@spring.url "/resources/plugins/datatables/dataTables.bootstrap.js"/>"></script>
<script src="<@spring.url "/resources/plugins/datatables/dataTables.responsive.min.js"/>"></script>
<script src="<@spring.url "/resources/js/tables-datatables.js"/>"></script>
<script type="text/javascript">
            //$(document).ready( function() {
    $('#dt-basic').dataTable( {
        "fnDrawCallback":function (settings) {
            $("#dt-basic thead tr th:first").removeClass("sorting_asc");
            $("#dt-basic tbody tr td:first").removeClass("sorting_asc");
        },
        "aoColumnDefs":[{"bSortable":false, "aTargets":[0]}]
    });
            //});
        </script>
